package com.varian.system.dto;

import com.varian.tool.enums.CommonStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ben
 * @since 2024/7/2
 */
@Data
@Schema(title = "角色数据对象")
public class SysRoleDTO {

    @Schema(title = "角色名称")
    @NotNull(message = "角色名称不能为空")
    private String roleName;
    @Schema(title = "角色编码")
    @NotNull(message = "角色编码不能为空")
    private String roleCode;
    @Schema(title = "角色描述")
    private String roleDesc;
    @Schema(title = "角色状态")
    private CommonStatusEnum roleStatus;
    @Schema(title = "角色权重")
    private Integer roleWeight;
}
